package kizzo.game.tile_objects 
{
	import away3d.entities.Mesh;
	import kizzo.geometry.TileCoord3D;
	/**
	 * ...
	 * @author kizzo
	 */
	public class ActivatorTile extends TileObject
	{		
		private var turned_on:Boolean;
		public var id:int;		
		
		public function ActivatorTile(mesh:Mesh, tile_coord:TileCoord3D, type:uint, id:int) 
		{
			super(mesh, tile_coord, type);			
			this.id = id;
			this.turned_on = false;
		}
		
		
		public function activate():void
		{
			turned_on = true;
			this.mesh.material = MaterialLib.ACTIVATOR_ON;
		}
		
		
		public function deactivate():void
		{
			turned_on = false;
			this.mesh.material = MaterialLib.ACTIVATOR_OFF;
		}
		
		
		public function is_turned_on():Boolean
		{
			return turned_on;
		}
		
		public function get_id():int
		{
			return id;
		}
		
	}

}